# Contributor: Maxim Karasev <mxkrsv@disroot.org>
# Maintainer: Maxim Karasev <mxkrsv@disroot.org>
pkgname=nvim-packer
pkgver=0.0.0_git20220910
_commit=6afb67460283f0e990d35d229fd38fdc04063e0a
pkgrel=0
pkgdesc="use-package inspired plugin manager for neovim"
url="https://github.com/wbthomason/packer.nvim"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
source="https://github.com/wbthomason/packer.nvim/archive/$_commit/nvim-packer-$pkgver.tar.gz"
builddir="$srcdir/packer.nvim-$_commit"
options="!check" # requires entire neovim tree

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra lua doc "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
}

doc() {
	default_doc
	amove usr/share/nvim/site/doc
}

sha512sums="
4f78d23cd909f91f399b7721a1971ef8a63548d08d48d125365cbde425acebb10d3d52ce0c5d0b253223bc98b413945771d5fc1bb1960aa715f0cac9848abba3  nvim-packer-0.0.0_git20220910.tar.gz
"
